package org.jeecg.modules.demo3.fly.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 无人机管理表
 * @Author: jeecg-boot
 * @Date: 2021-01-28
 * @Version: V1.0
 */
@Data
@TableName("axhk_yw_agrplane")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "axhk_yw_agrplane对象", description = "无人机管理表")
public class AxhkYwAgrplane implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
    /**
     * 序列号
     */
    @Excel(name = "序列号", width = 15)
    @ApiModelProperty(value = "序列号")
    private java.lang.Integer serialNumber;
    /**
     * 制造商标识
     */
    @Excel(name = "制造商标识", width = 15)
    @ApiModelProperty(value = "制造商标识")
    private java.lang.String sign;
    /**
     * 无人机类型
     */
    @Excel(name = "无人机类型", width = 15)
    @ApiModelProperty(value = "无人机类型")
    private java.lang.String model;
    /**
     * 农机类型
     */
    @Excel(name = "农机类型", width = 15, dicCode = "types_of_farm")
    @Dict(dicCode = "types_of_farm")
    @ApiModelProperty(value = "农机类型")
    private java.lang.String agrPlaneModel;
    /**
     * 作业总面积（亩）
     */
    @Excel(name = "作业总面积（亩）", width = 15)
    @ApiModelProperty(value = "作业总面积（亩）")
    private java.lang.Double totalArea;
    /**
     * 实名登记标识
     */
    @Excel(name = "实名登记标识", width = 15)
    @ApiModelProperty(value = "实名登记标识")
    private java.lang.String realSign;
    /**
     * 运营人
     */
    @Excel(name = "运营人", width = 15)
    @ApiModelProperty(value = "运营人")
    private java.lang.String operator;
    /**
     * 激活时间
     */
    @Excel(name = "激活时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "激活时间")
    private java.util.Date activationTime;
    /**
     * 激活状态
     */
    @Excel(name = "激活状态", width = 15, dicCode = "activated_state")
    @Dict(dicCode = "activated_state")
    @ApiModelProperty(value = "激活状态")
    private java.lang.String activationState;
    /**
     * 销售状态
     */
    @Excel(name = "销售状态", width = 15, dicCode = "sales_status")
    @Dict(dicCode = "sales_status")
    @ApiModelProperty(value = "销售状态")
    private java.lang.String salesStatus;
    /**
     * App用户
     */
    @Excel(name = "App用户", width = 15)
    @ApiModelProperty(value = "App用户")
    private java.lang.String userName;
    /**
     * 用户组
     */
    @Excel(name = "用户组", width = 15)
    @ApiModelProperty(value = "用户组")
    private java.lang.String userDeparts;

    @TableField(exist = false)
    private int state; // 飞机在线与不在线状态（默认为不在线  不在线0/1在线）
    @TableField(exist = false)
    private int astate; // 手机App在线与不在线状态（默认为不在线  不在线0/1在线）
    @TableField(exist = false)
    private java.lang.String userId; // 接管飞机用户id

    @TableField(exist = false)
    private int connStatus; //(当前状态   1、未接管  2、已接管  3、已连接)
}
